package org.example.web;


import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
* 短信client
 *
 * @author zhao
*/
//@FeignClient(name = "middle-platform", contextId = "task")
public interface TaskApiClient {

   /**
    * 新建任务
    */
   @PostMapping("/v1/exportTask/add")
   Result<Long> create(@RequestBody @Valid ExportTaskRequest request);


   /**
    * 更新
    *
    * @param request 更新VO
    * @return true/false
    */
   @PostMapping("/v1/exportTask/update")
    Result<Boolean> update(@RequestBody @Valid ExportTaskRequest request);


}